﻿@{
    ViewBag.Title = "个人资料";
    Layout = "~/Views/Shared/_UsersCenterLayout.cshtml";
    ViewBag.NavTitle = "个人资料";
}
@using MvcMall.Portal.Controllers.Users.ViewModels;
@model UserInfoModel
<script src="@Url.Content("~/Scripts/jquery-1.4.4.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
<div class="right_box">
    <div class="right_box_map">
        个人资料
    </div>
    <div class="right_box_card">
        <ul>
            <li class="right_box_card1"><a href="#">个人资料</a></li>
            <li class="right_box_card2">@Html.ActionLink("修改邮箱", "ChangeEmail", "Users", null, null)</li>
        </ul>
    </div>
    @using (Html.BeginForm("UserInfo", "Users", FormMethod.Post, new { enctype = "multipart/form-data" }))
    {
        <table style="margin-top: 10px;" width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr height="40">
                <td class="tab2_td">
                    用户头像：
                </td>
                <td>
                    @if (!string.IsNullOrEmpty(Model.UserHeaderImage))
                    {
                        <text><img src="@Model.UserHeaderImage" /><br /></text>
                    }
                    <input type="file" id="userHeaderImag" name="userHeaderImag" />
                </td>
                <td>
                    @Html.ValidationMessageFor(c => c.UserHeaderImage)
                </td>
            </tr>
            <tr height="40">
                <td class="tab2_td">
                    @Html.LabelFor(c => c.UserName)：
                </td>
                <td>
                    @Html.TextBoxFor(c => c.UserName, new { @class = "tab_input", @readonly = "true" })
                </td>
                <td>
                    @Html.ValidationMessageFor(c => c.UserName)
                </td>
            </tr>
            <tr height="40">
                <td class="tab2_td">
                    @Html.LabelFor(c => c.Email)：
                </td>
                <td>
                    @Html.TextBoxFor(c => c.Email, new { @class = "tab_input", @readonly = "true" })
                </td>
                <td>
                    @Html.ValidationMessageFor(c => c.Email)
                </td>
            </tr>
            <tr height="40">
                <td class="tab2_td">
                    @Html.LabelFor(c => c.Mobile)：
                </td>
                <td>
                    @Html.TextBoxFor(c => c.Mobile, new { @class = "tab_input" })
                </td>
                <td>
                    @Html.ValidationMessageFor(c => c.Mobile)
                </td>
            </tr>
            <tr height="40">
                <td class="tab2_td">
                    @Html.LabelFor(c => c.RealName)：
                </td>
                <td>
                    @Html.TextBoxFor(c => c.RealName, new { @class = "tab_input" })
                </td>
                <td>
                    @Html.ValidationMessageFor(c => c.RealName)
                </td>
            </tr>
            <tr height="40">
                <td class="tab2_td">
                    @Html.LabelFor(c => c.Sex)：
                </td>
                <td>
                    @Html.RadioButtonFor(c => c.Sex, "1")男
                    @Html.RadioButtonFor(c => c.Sex, "0")女
                </td>
                <td>
                    @Html.ValidationMessageFor(c => c.Sex)
                </td>
            </tr>
            <tr height="40">
                <td class="tab2_td">
                    @Html.LabelFor(c => c.Birthday)：
                </td>
                <td>
                    @Html.TextBoxFor(c => c.Birthday, new { @class = "tab_input" })
                </td>
                <td>
                    @Html.ValidationMessageFor(c => c.Birthday)
                </td>
            </tr>
            <tr height="40">
                <td class="tab2_td">
                    @Html.LabelFor(c => c.Phone)：
                </td>
                <td>
                    @Html.TextBoxFor(c => c.Phone, new { @class = "tab_input" })
                </td>
                <td>
                    @Html.ValidationMessageFor(c => c.Phone)
                </td>
            </tr>
            <tr height="40">
                <td class="tab2_td">
                    @Html.LabelFor(c => c.QQ)：
                </td>
                <td>
                    @Html.TextBoxFor(c => c.QQ, new { @class = "tab_input" })
                </td>
                <td>
                    @Html.ValidationMessageFor(c => c.QQ)
                </td>
            </tr>
            <tr>
                <td>
                </td>
                <td colspan="2">
                    <input type="submit" value="保存个人资料" />
                </td>
            </tr>
        </table>
    }
</div>
